package com.tutorialspoint;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.ui.ModelMap;

import com.map.domain.Coords;

import java.util.*;

	@Controller
	@RequestMapping("/ajax")
	
public class AjaxController {

	    @RequestMapping(value = "/findCoords", method = RequestMethod.GET)
	    public @ResponseBody List<Coords> findCoords() {
	    	List<Coords> coordsList = new LinkedList<Coords>();
	           coordsList.add(new Coords(12,10));
	           return coordsList;
	    }

}
